package com.aaa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 左侧菜单地址
 * @TableName e_permission
 */
@TableName(value ="e_permission")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Permission implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 父级id
     */
    private String pid;

    /**
     * 权限名字
     */
    private String pName;

    /**
     * 链接
     */
    private String url;

    /**
     * 图标
     */
    private String icon;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    public List<Permission> getChildren() {
        return children;
    }

    public void setChildren(List<Permission> children) {
        this.children = children;
    }
    @TableField(exist = false)

    private List<Permission> children=new ArrayList<>();



}